import request from '@/utils/request'
// 车型业务配置列表
export function configurationList(query) {
  return request({
    url: '/longOrder/plan/configurationList',
    method: 'get',
    params: query
  })
}
// 查询长租方案主列表
export function listPlan(query) {
  return request({
    url: '/longOrder/plan/list',
    method: 'get',
    params: query
  })
}

// 查询长租方案主详细
export function getPlan(longPlanId) {
  return request({
    url: '/longOrder/plan/' + longPlanId,
    method: 'get'
  })
}

// 新增长租方案主
export function addPlan(data) {
  return request({
    url: '/longOrder/plan',
    method: 'post',
    data: data
  })
}

// 修改长租方案主
export function updatePlan(data) {
  return request({
    url: '/longOrder/plan',
    method: 'put',
    data: data
  })
}

// 删除长租方案主
export function delPlan(longPlanId) {
  return request({
    url: '/longOrder/plan/' + longPlanId,
    method: 'delete'
  })
}

// 导出长租方案主
export function exportPlan(query) {
  return request({
    url: '/longOrder/plan/export',
    method: 'get',
    params: query
  })
}

// 导出长租方案主
export function stopUsingEnabled(data) {
  return request({
    url: '/longOrder/plan/stopUsingEnabled',
    method: 'put',
    data: data
  })
}
